Adding legacy algorithm scripts for reference