R compound tires and a great driver might put the 330i ahead of the M3 at a track.
Other than tires and driving skill, I wouldn't bother trying to make the 330 faster than the M3. Just get a M3 if you want one or get something faster if you want to beat a M3