Added functions to separate address into tag, offet and index.
Initializations also done.