Algorithm Params stuff and InputArray/OutputArray added