memoize strictly_increasing and mean_imls
Merge pull request #59 from gem/optimize-classicalpsha

Minor optimizations by using memoization