Ren - commit #1: family tree code  & bug fix

script 10, 11 -- to run algorithm on family trees. Only need to run
script 11. extract_fmilytree.m and extractgrouped_familytree.m both for
extracting family tree examples

bug fixes in matchlentemplatesbrute2.m and genlengthtemplatemedian.m,
added bounds check. Could be improved.

crossvalidationgenerator - randomization of perfect and synthesized
examples generator