Create balancedPartition.java