simple implementation of algorithms in the book  Pattern Classification by Richard O.Duda