Change eviction logic

New algorithm dynamically allocates memory from the total pool to the
hotCache and mainCache based on how many requests went to each.