Various fixes

Cache allocation in cache_create not accounting for increased line size
(should be fixed).

Also put the code before replacement in an if statement to keep it to
the L2 cache.

Added some print statements to find where it’s having issues.