Speeding up Python math with Numpy: collision detection example