Start handling memory in tiling algorithm