Made mapdata and reduce data classes generic
Made mapdata and reduce data classes generic