completed WLSFilter algorithm, it is not properly tested yet however. Test is the next step, and visualization