add vBias and hBias learning code