A Novel Algorithm to Detect and Prevent Slip during Dynamic Object Manipulation using Tactile Feedback