improve speed of split algo

git-svn-id: http://svn.mkgmap.org.uk/splitter/trunk@342 838fabe5-b1a8-4b81-9896-7a84386980e9