remez modified to work with filters.