LYAP: Changed the imports to use the doubling alg.