Changed structure of data in "way" tree. Now it only stores linestrings

Added missing dependency to pom