Added select operation to matrix, and solved a bug at get() operation when the matrix has one dimension