WiSARD Class Implementation