Memory management fix

entitiesToErase is now an unordered set (you can delete the same entity
twice without any problem now)