Added a file for magnitude computation