Removed duplicate implementations of floorMod