Topology

Layers will support custom topologies in the future that go beyond square lattices.