Software for simulating interacting galaxies using a restricted three-body approximation