added matrix free way for bernstein polys