Constructor from sequence

from sequence(naive, 2nd step, O(n^2))