vectorized logistice regression done