Implementation of various data structure algorithms