updated the score equations functionto work for mixed graphs. Haven't debugged it yet.