Hardware-Based Particle Filter with Evolutionary Resampling Stage