Added resize()
Removed some common functions from mpi_base to addit_func