Just a simple implementation of Euclidean Algorithm.