Algorithms for speech data reduction and recognition