add, delete vertex in matrix