Fix case where 2 different coordinates can map to same index causing incorrect ordering.

Also reduce amount of autoboxing by using pcj collection.
Add option to limit the number of concurrent requests made.