changed dim_type typedef to int from long long

Using long long for indexing data type is causing drastic
performance drop for CUDA and OpenCL kernels. Hence, changing the
typedef to point to int.
Merge pull request #121 from 9prady9/ocl_perf_fix

changed dim_type typedef to int from long long