Deleting a specific value from an ordered list