Added C++/Java api examples;
Converted cset to be vector of char, instead of vector of int, since we only accept ascii in input.