Updated \innerprod command to take two arguments instead of one.
Added package algpseudocode and removed packages algorithm, algorithmic for writing algorithms.
The algorithm environment is still algorithmic.