added a method to clear weights in HiddenLayer