1.2, added small improvements
Added testing for longest prefix match