continued visibility computation part, added tests for Powell