move algorithm import to correct file