add domain for K-W step
change function to test
add Random Search implementation