Remove template specialization(?) for 3 dimension array
Introduce external constructor function, BaseArray(size) and DeviceArray(size)
Fix compile error in gcc