common algorithms, demos