ENH: Optimisation of regrid.

Vectorised and cached bounds checking.