Various algorithms written in lisp