Some classic algorithms in C...