Update OneDHaar.java

added tests to check if n is a power of 2.