As I work through common algorithm implementations in Java, I'll put them here.