Added debug output function, made reachedFailureLimits() test public, made clearQuery() also clear solutions paths