My implementation of basic algorithms in C