Move geotransform functions into their own module

Also change their representation (bigarray) and add inversion wrapper.