Fixed 2 of several bugs present

1. Fixed wrong calculaion of basic parameters when associativity != 1.
2. Added forgotten LRU implementation on a cache hit