An Algebraic Model for Transient Simulation of Reciprocating Compressors