Make Array Double Link List API more generic.