Cleaned up rectilinear dependent tree implementation