Implemented easier constructive algorithm.