Java tree distances available