Investigation of Quasi-periodic Variations in Hard X-rays of Solar Flares