Implementation of Data Structures and Sorts in C