one_hot_cpp function

One-hot encoder for natural numbers without the 0