add divide matrix method