Find the length of the base of a square pyramid if the volume is 128 cubic inches and has a height of 6 inches.