Implemented recursive form algorithm. Added two test motifs