working parallel solver; bug fix: index mapping in gradfi