An algorithm to use in adaptive wideband duplexer for software radio