Wiener filter code