make_lattice is a flexible function, it can create lattices of
arbitrary dimensions, periodic or unperiodic ones. It has two
forms. In the first form you only supply dimvector, but not
length and dim. In the second form you omit
dimvector and supply length and dim.