Allocate the channel arrays dynamically