The code now compiles clean with -Wall
- Fixed bug having to do with 'dist' being too small
- Added isInOtherSector function