Application of the sequential matrix diagonalization algorithm to high-dimensional functional MRI data