A comprehensive unified set of single-step algorithms with controllable dissipation for dynamics Part I. Formulation