Map in form of matrix

Format of files:

First line contains value of N
Next N lines contain each N elements ('.' or '|')