Make filter tail-recursive
Merge pull request #151 from koba-e964/master

Make filter tail-recursive