memoize methods invocation
The memoize library allows you to cache methods for Numerics (Integer/Float) in Ruby >= 2.0.0.
Really simple memoization for ruby 2.0