rearranged algorithm-module, deleted old scripts