Finding Vertex Of A Function