Introduce ants_impl behaviour

Prepare for merging ants module implementation using gb_trees