forgot to commit
Merge branch 'master' of https://github.com/nickgonzales/scache
added cost and perfect memory calculations