Add some scripts for bottom-up tree generation

  - convert_funs.py: converts funs to Prolog format
  - fun_path.pl: utils for bottom-up tree generation (in Prolog)