Merge pull request #15 from magdaleen/experimental

write algorithms in new format