Algorithm implementations I've written (in C)