Added functions and fixed some errors
Added functions to remove entries from linked list by value or by reference. Also fixed some memory issues in the cons and insert functions. Also added the Head and Tail functions. TODO: store the data structure in the heap instead of the stack, it will improve speed and reduce the chance of stack overflow.