scala calling a dictionary implemented in C