include divs instead of rdivide in lcm
add missing include and remove useless clutter in divround