separated into 2 functions, added length_cutoff default value based on the box
separated into 2 functions, added length_cutoff default value based on the box

libAtoms/matscipy,libAtoms/matscipy,libAtoms/matscipy,libAtoms/matscipy