get_bit: fixed bug with bit offset order

+ Added test cases for get_bit.
+ get_bit declared as inline function instead of static inline
  to allow for testing in test_geohash.c