Algo base changes

@aylakhan @moritzdannhauer Solved the link error, finally. I'll merge this into master, then it can be applied to md_master, then the PR branch.