fully functional 1-dimensional context filtering, issue #13