K-loops: loop transformations for reconfigurable architectures door