Fundamentals of Pattern Recognition and Machine Learning