SPTGSolver working alone  with pointers