Mean period function now caches last result for speed

shc_lv_meanperiod uses persistent variables to save last result in order to not perform expensive simulation. If any input changes, then the simulation will be re-run.

Signed-off-by: Andrew D. Horchler <adh9@case.edu>