Added Solution to #145, Tree generation.