Minor changes to list.c and list.h; further work on heap.h and heap.c, and a small change to array.c