Fix #357

Replace the tree set storing filters by a custom Sorted Set backed up on an array list

Signed-off-by: Clement Escoffier <clement.escoffier@gmail.com>