SOR algorithm in C