Solved bug at matrix::transpose() method