Implement subset construction algorithm.