Update alg.c

Add struct adjlist_vec (adjlist with autoarray).

Add *untested* struct pqueue.

Signed-off-by: Andrew Tselischev <andrewtselischev@gmail.com>