#49: fixed bug in the writeSorted() method
it was writing unpritable characters due to the fact that bw.write(int), in contrary to bw.write(String), uses the integer to determine the character with this encoding
#49: trying to find the reason for the missing line in chain 012 as documented at the end of #82.