added template class for alphabeta filter