Added switching function in max size
Merge branch 'no-buffer' of https://github.com/plumed/plumed2 into no-buffer