Pattern recognition textbook