Gravitational Collapse of Rectangular Granular Piles