add some code for even_tree
add solution for even_tree in scala