GeoHash class in PHP