C implementation of HNF computing algorithm(naive Euclidean Algorithm)