this is a method which used by other related class
//
//
to reuse this XOR class on different strings, instead of using fields,
move the string to parameter of XOR method.
//
//
this is the first attempt of using char frequency. the algorithm is not
good so far.
tester is modified corresponding to XOR class