Issue3258

This pach forces the coertion to size_t of certain arithmetic operations that determined the buffer sizes of a Matrix while cv::imread'ing a big PGM file I have.

Also, I changed the name of a local variable named "readed" to read. This variable simply counts the amount of bytes read from a RLByteStream.