added FilterWithBuffer to allow removal of malloc/free without losing ability to pass around filter objects
increased maximum sample buffer size from 6 to 10