another fenwick impl