Create BasicLib.cpp

BasicLib.cpp file, meat of the program...