New technology helping patients recover from heart attacks