kstacks, kqueues, trees and doubly linked lists