new things added, try to think about how to go in a Mat object in order to move between rows and cols at the same time