[]calculate Walsh