Added second constructive algorithm.