map output no longer null; sort for reduce implemented