test runs on doalg(n,k) changed to 1000 times as specified in project outline.