Made logic for transfering kernel paramters.
Getting grid and block size from parameters instead of hard coded values