Added Fast Algorithm