Added Polca functions used by Matstab

Signed-off-by: Rickard Jansson <rickard.u.jansson@gmail.com>
Old function readdist was used in get_inp_p7, changed to readdist7.

Signed-off-by: Rickard Jansson <rickard.u.jansson@gmail.com>