Update Assignment3.sc

Fixed union function! everything works OK!
recursion has to be TAIL!