I'd expect more opportunities for reduction in code size to arise when you use fancy algorithms (not sorting) on generic algebraic structures that have many models in your program. For example, when I was a student, I implemented a library of numerical methods for my own use in class. It benefited a lot from being implemented as generically as possible.
That being said, a 100x reduction in code size seems like an exaggeration.
That being said, a 100x reduction in code size seems like an exaggeration.