move ruby algorithms into corresponding folder
preorderedDepthFirst in scala