Added open btree implementation.
Build the btree stuff.
Fuck, I don't even know.
Memory now freed up like I want it to. API done.