Detection of QRS using wavelets