#21 added integer parameter algorithm interface
and extended example ind algorithm.