Perceptron and contour plot

This PR contains:
- Perceptron demo.
- Better contour plot.