added haar cascade test algorithm