My implementation of some classic algorithms