Example of datastructure and algorithm