fix branch end detection
add priority queue implementation (needed for graph traversal)
store commit timestamp