add method size, extractAll

size use the methode sizeHelper
Main has some new operations