Added splice for vectors, also a remove method for paths