add Unique Paths java version