a bug fix. it was failing with an assertion error for odd numbers of N. Now works fine and agrees with ma matlab values at odd N