SMS: Desing and analysis of cross-over trials