Two charged with murder in beating death