Split based on median

Thanks a lot!! Actually easier than expected...saved a lot of time.