Design and implementation for a SVD algorithm for image compression and pattern recognition.