add print in permute.java