using basics algorithms like sort, search to learn scala lang