Algorithms And Technologies For Photonic Crystal Modelling