Fixed typos and a bug

Fixed typos and a bug in the Euclidean Algorithm