add a squeeze method to History (rename max() )

as suggested here [1] we should add a method to history that squeeze it. A simple solution would be rename the max() method as the name seems confusing..

[1] !410 (comment 177968)