add General Multi-thread

Added script for general multi-Threading of Functions