Add delete method to custom linked list class