Datastructures and Algorithms in C