Trying to find optimal threas_per_block