Changed the order of a couple of conditionals for a teeny-tiny speed up.
Merge pull request #4 from NonlinearDynamics/TinySpeedUp

Changed the order of a couple of conditionals for a teeny-tiny speed up.