Corrected behaivour for at for both Single and Double linked list, and insertAt function for Double Linked List