Created and implemented Assembly algorithm