merged the two types of linear index pattern and improved it furtther;
work on the hessian source generation from reverse mode 2 with loops (WIP);
work on the hessian source generation from reverse mode 2 with loops (WIP);