Realizing Quantum Gates And Algorithms With Three Superconducting Qubits