Efficient Algorithms For Least Squares Wave Equation Migration And Source Signature Estimation