a  template library for the raid6 algorithm