Implementation of a medium-modified parton shower algorithm