Fixed a lot of the problems with the list version. It doesn't work completely though.
Continued the implementation of the buddy version.