Flexible trimming and robust clustering through the forward search