added shortne and getLongUrl function contents

I added the content of main two functions, 
not that, global variables may help full to keep data within the execution flow and I used that property for implement the logic.