Incomplete - task : speed everything up 
Incomplete - task : speed everything up 

Complete - task : make flatten chain function 


git-svn-id: a36550da1b6493884efebfb740573981a7433be5@6871 a8237c23-d22b-0410-ac1a-db40f18c2caa

benedictpaten/cactus,benedictpaten/cactus,benedictpaten/cactus,benedictpaten/cactus,benedictpaten/cactus