Updated Cache and BTree

Cache contains more useful methods. Added in separate constructor for
cache implementation within BTree. Updated BTree close method