New algorithm for constrained molecular-dynamics simulation of liquid benzene and naphthalene | Synapse