Appeals court overturns triple murder conviction