Fixed serious bug with shuffling
Fixed max_iterations, conv initialization and symmetryizing A during each iteration.
Moved constraints and sampling to constraints.py