reorganized spark and MR programs