adding symbol deficit metric + tools to compute metrics