DiaWay code souce

our first implementation of our method to solve the problem of diagonals
consistency in DIALIGN method.