Basic Codes using Boost Library in C++