dcoss13/flash-ts related changes, some cleanup of algorithms/ directory structure