| size_t to int

In many cases the 2d indices can be negative.