Performance enchancement with numpy instead of forloop