Refactor geohash module. Add unittest for to_float function.