added haar transform code for rows of transport matrix when they are loaded in