add cache
Merge pull request #1 from JimmyE/cache_results

add cache