Insert sgminerpath and kernelpath to compiler options
Reformat algorithm.c
Use variable for data