Some well-known algorithms implementation. Just for fun.