addded algorithmDeterminant