Fixed heap corruption for efficient SRG algo. GUI now displays SRGs on mouse click.