Adlib.shift will shift certain amount in a specific dimension of the array. Explicit memory management for the shift is needed.