Added C script for copying given tree