modified and implemented swqcca-solver