Division based Eucledian algorithm