An Algorithm for the Inversion of Finite Hankel Matrices