Simple operations for matrix