Changed add_[pre|post] arguments to references.

Issue @B5 : Changed the argument type to references to avoid
extra copying.