lcm/2, tests, docs