Change thread implementation to access row and col range