Taifead r-phoist: Iterative optimization in inverse problems