moved algorithm directory to ps dir