Fix for bad performance of LayerNodeIndex.add()

This is a fix for the issues described in

https://github.com/neo4j/spatial/issues/72

and discussed here

https://groups.google.com/forum/#!topic/neo4j/qgGI60taSmA

and here

https://groups.google.com/forum/#!topic/neo4j/o07iBeHI8TU