fixed linked-list removal and added pop function

Fixed removal from linked-lists, adding the length decrement. Added a pop
function to complement the push function. Added a generic initializer function
pointer type.