renamed the file and fixed a bug when n was a power of 2. the program now reads from standard in, in the described way "n m \n h"