did you initialize and store all the features points in Array featuresA?
Anyway, try to check the opencv source code, if you still can't figure out what is wrong.
PS. Are you doing cs4243 project?............:p.......
PS. Are you doing cs4243 project?............:p.......