Little scripts implementing various algorithms