tree parents vector java