Implemented test_perceptron.

Runs perceptron algorithm with different learning rates and displays
results.