#5 adding comparator for statistics, adding Weighted cost comparator