remove singleton ranks on matrix multiplication with vector