Improved Utopian Tree solution