Refactored block jacobi algorithm to reduce number of row matrix interface calls