Field-Programmable Learning Arrays