Attempt in C using GSL

Converted to useable C++, compiling with g++ -lgsl -lgslcblas