Solved problem set 1 for parallel programming: found global index of block/thread.