Fixed reversed coordinates and added bounded box queries