Implementation of basic structures and algorithms