Made some changes to the algorithm
Made even more changes to the memoria