Added RandomLattice class.