fix bug for length(psi_mask)==1

Conflicts:

	core/wavelet_layer_1d.m