numpy array optimisation of _quadrant_area