Simple algorithms libarary