Add revamped endpoint locking to process_create()
Rewrite red-black tree code