a fast and functional fwt