Automatic Matrix Format Exploration for Large Scale Linear Algebra