finshed function to split parameter vector equaly