Merge pull request #29 from wolever/memoized_method

Add memoized_method function
Add to_float