A simple implementation of a causal tree, it still needs to be better tested & fuzzed so it may not work as expected in its current form. I haven't bothered implementing a test library like jest yet so it's just in js files for now.