New ordering arrays plus modifications to the code. Needs to decide on the structure of the N and B-matrices.

+ implement evolution of damage