map/count_all algorithms added