chore(map.c slice.c)

add more info for index out of range error
add keycmp to compare the key