Fixed a bug which caused segmentation fault when setting max_iter of matching pursuit.