Five men were rescued in Sumatra after they were held hostage by tigers up a tree for five days.