Adding Ip Validate function to functions
* Added a function ip_validate to validate if the ip is in valid ips or subnebts
* Added the test for ip_validate with all cases
* The function accepts $valisIps as ip, array of ips, subnet range or array of subnet ranges