Quantum Detector And Process Tomography: Algorithm Design And Optimisation