The segmentation fault due an out of bound vector access has been solved. Some filter functions has been improved.