Some more refactoring of the lattice vectors
Description
Some more refactoring of the lattice vectors:
- use the norm of the lattice vectors instead of lsize in some places
- lattice vectors arrays are now allocated to the right size, instead of being of size MAX_DIM.