Isomorphism Testing in Multigraphs Using Canonical Forms