SCC alg correct&fast, java heap size needs config