Tiling the crystal structure
This method will find the pattern that lies underneath by creating tiles of smaller
and smaller resolution until the positions are found. Note: the size of the tiles is not
important, the position is.
An appropriate cost function helps to determine whether a tile is placed well or not.
The source code