What will you do if map is 1002х1002?
Hint: use vector