Modified the steady-state detector and is now 2x faster.  Moved steady-state detector to utility functions since it is used in many different calculations and modules.