midpoint displacement algo fixes + 2d terrain viewer