Huge crowd bids farewell to Iranian ex-president