cut the code into different file
write a template for conjgrad
cut the test case into different file