Introduction-to-algorithms is a project mainly written in ..., it's free.
Code from the Cormen et al book