refractored infalgoithms in infalgorithms & fixed bug in passage between double and int