Visual Tracking of Human Hand and Head Movements and Its Applications