Converted code from C to C++

Added CartPnt and PolPnt classes to library.h/cpp