Heap overflow using linked list