An Algebraic Approach to Reverse Engineering Finite Dynamical Systems Arising from Biology