Fixed bug in packing.
Fixed bugs in resize_quda.cu
Fixed bug in getCoordinates
Fixed bug in two-dimensional partitioning.