Implement fixes to alpha algorithm for Loops of length one and two