A FAST ALGORITHM FOR MAGNETIC-RESONANCE LINESHAPES OF POWDER SAMPLES