Added massIndices2connectionIndices, tested and working