added init, and made working with mpiicpc and c++11