Generalized Grover Search Algorithm for Arbitrary Initial Amplitude Distribution