The code for the data structure and algorithm.