Performance enhancements of 15-45% by reducing internal array allocations, incorporating proposed changes by anowacki.
The following changes are now in place:
- Return tuples instead of 1x2 arrays in internal functions
- Return a tuple instead of a 1x2 array for public-facing functions when called with a single point