Energy and time resolution of a LYSO matrix prototype for the Mu2e experiment