added different solutions for Golomb and Leech trees