C++ version included. Base conversion stream output added.