Removed redundant and unfinished algorithm