What is the law that established how the northeast territory would be divided?