code matrix,wave2D,spiht beta

matrix done
wave2d done
spiht has bug