A packaging company is going to make closed boxes, with square bases, that hold 512 cubic centimeters. What are the dimensions of the box that can be built with the least material?