Implemented generic algorithm with random initial values.