sedgewick algorithms in c reddit