add write method to ndarray
change the write method

When the dist array is not unique, loop though all gpus
Add a padding method to ndarray

complete the code in convolution method
add a timer in util