On the Equivalence of the Weighted Tsetlin Machine and the Perceptron