Towards a balance algorithm to determine forward and backward leans in skiing