Algorithm Analysis for GNSS Spoofing Detection System