Added the source file

Support non-contingous stretchable blocks.