Correct lengths list and degree list
    completely recalculated with Sage (for sd:Ideal)