Added one_hot_encode to misc as native implementation makes no sense