Added border edge handler, symmetric global matrix