An algorithm for generation of efficient manipulator dynamic equations | Synapse