Scalable Pattern Recognition Algorithms