refactoring Parmetis to use vectormap