Add norm computation

Computes the normalisation factor for a multiset (photonic state)
Also add 5x5 hard-coded permanent. No speed benefit - not used