fixed a few functions

basic working of link list using arrays.. functions work but not
perfectly,... display function displays the entire list for now.