Implementation of Graham Algorithm in C++