DEV: Add function for jacobi with matrix and vector argument instead of pointers