Fixed issue 26

The idea is that when we build an instruction, if the instruction is a phi-node with multiple incoming edges, we do DFS from the basic block containing the phi-node and check if we will revisit the basic block. If yes, we know that this phi-node is the merge point of loop iterations.
Merge pull request #74 from chenyang78/issue_26

A fix to address issue 26