Time increases with splitting the inner most for loop