Nested Dissection for Cubic Structure