Area-time optimal VLSI networks for multiplying matrices