made all algorithm detections capable of working with or without single line for statements
removed the swap transformation from the algorithms and made another transformation for this