Create Wave.java

Initial source code from regular Java threads version