removed redundant sources, restructured fundamental algos