Add filters to an array. Written in C using arrays