add algorithm test script