completing the square trick - Search