Here the number of cubes is calculated for each dimension for the defined cube size and molecule dimension. A dictionary of cubes is generated containing the coordinates of the origin point of each cube. Furthermore, an empty list for each cube is added, that will contain atom ids of atom objects.
Cube ids are tuples containing three elements with the x-axis as the first entry, y-axis as the second entry and the z-axis as the third entry