Changed to use HashMap insted of Treemap to store pages due to memory problems