Fixed H_inverse calculation

The determinant was not computed correctly due to limited precision,
changed everything into float.
There is still a problem with singular matrix determined by points
having [0,0] coordinates!