Switched beachline to use pointers and started implementing it as a tree. Still functional, but not fully converted.