switched 'reshape' to acast/melt from reshape2: much more memory-efficient