matrix shared example working with 2d thread_indexes