Added a matlab function to do eoshift