Recursive movement analyzer