implementation of graph coloring approach for exploiting hessian sparsity