added argument for doing gauss elimination modulo 2. also implemented angles correctly in GRAPH_DATA for red_green and substr_linrat