efficient recursive algorithm
improved tests
RELEASED v1.3