clear() for classifier, regression and stat

Add clear() function.
This is related to issue #200, but I have not added clear() to servers yet.