Refactoring of the parallel transform algorithms