Software and hardware to run neural networks faster and cheaper