Changed hard-coded CUDA device # to 0. Also added support for AlgorithmType in parameter list.