Reconstruction Algorithms For X-Ray Nanocrystallography Via Solution Of The Twinning Problem