Finds a position in a list of positions by the passed coordinates.
The lookup coordinates
The haystack array
The found position
Finds a position in a list of positions by the passed coordinates.