Block Iterative Methods with Applications to Density Functional Theory