How Can I assign 3-D array dynamically