fix algorithms SFINAE: iterator or container