Code blocks stuff
Add function to init the array with a pattern

Pattern is left and top ones and the rest zeros
General improvements

More verbosity and added correctness test