sccs O(n+m) alg correct and fast for small n!