improve euclidianDivision