Faster java impl

Started with changes in reddit comments, improved further, also cleaned up readPlaces().