Add benchmark script.
Updates #11

Signed-off-by: Shawn Laffan <shawnlaffan@gmail.com>
Yak shaving.
Make the heavy usage subs marginally faster.
Give the benchmark script some arguments.

Signed-off-by: Shawn Laffan <shawnlaffan@gmail.com>
Add a new class as a simple block based index.  This is faster than the rtree implementation, albeit it is far less generic.
Updates #11

Signed-off-by: Shawn Laffan <shawnlaffan@gmail.com>
Use a bare metal spatial index.  The repeated coord lookups were cancelling out any benefits of the index, as we had to look for each vertex in each segment, so twice for every segment.  The non-indexing search just gets each coord once since it is sure of working in order.
An index resolution of 10 seems to work well as a tradeoff, being ~50-70% faster than the non-indexed version for a sample of shapefiles.

Updates #11

Signed-off-by: Shawn Laffan <shawnlaffan@gmail.com>