rewrited classes
same trouble at sort.cpp - look comments