Signal Alignment based on SSD and R^2 - Thesis project