Completed both prediction function with complete vectorization...

Assignment Completed...