givens not finished
finished solver_jfng_gpu but with some bugs
modified mem bug