Update BasisFnc.cpp

rebuild program structure,
working on pointers, input processing and test scenario