PoPE: Legendre Orthogonal Polynomials Based Position Encoding for Large Language Models