Fussy Algorithms: With Applicatioans to Image Processing and Pattern Recognition