Dynamic Partial Orders and Generalized Heaps