SA implemented
merged
algorithm working