add swap of two nodes in tree with given counters
use c-string instead of c++ string class