kernel replaced with tiling for larger problems.
Working fine.
removed some extra code