Inversion Algorithm Runtime Analysis