Added a simple implementation of histogram filter