add new functions , change access modifiers for some functions

add functions :  validPoint , matrixToAdjList , adjListToMatrix (ToDo) ,
transpose , calculateEnergy
change functions form public to private : GetHeight , GetWidth ,
CalculatePixelEnergy