Bug fixes and wide tree generation
Fixed a bug with bugger wide trees and also made it possible to get the the two distant nodes in this function