Added the C++ Implementation
I think that this can be merged with #739
@mor11235 #739 only addresses Binary conversions, whereas this issue addresses hexadecimal and octal on top of binary.
I got it in JavaScript, it supports conversion to any base from 2 to 16. Easily extendable even further, but I think it should be OK as-is. I will fork, push and submit a pull request asap.
if it is still open can i do it in c++ or python