Optimize

- [x] convert coordinates to unique indexes to avoid subsequent hashPoint and equalPoint calculations