Implementations of the magic forest problem in various languages