Extended Body-Angles Algorithm to recognize activities within intelligent environments.