Added subset filtering

Added produce_subset method in data_extraction