Fitting Sparse Hierarchical Models: Applications To Factorial Designs