More operations added on matrix type