Applications of Pattern Recognition to Chemistry