Add discriminant function in 2-D example

Example taken from section 4.1.1 Two classes