DisjointContiguous2.java is work, improved algorithm