characteristic polynomial calculator