Adding a function that creates a dictionary based on a table
and the indexes passed as arguments.

Signed-off-by: Renato Stoffalette Joao <renatosjoao@gmail.com>