Refactored LineTree to use tree as internal structure

With the new implementation the internal datastructure is now fully
encapsulated and is not being used outside anymore.
Merge branch 'master' of github.com:chris-/LogikSim