Core: grid search for unit cell

In the frequent cases where the indexer fails, it would be useful to be able to manually enter a unit cell. The problem is determining the orientation matrix. The following publication describes the grid search used in DIALS:

http://scripts.iucr.org/cgi-bin/paper?S1399004714017039