Text this: A new mathematical model for mapping indoor environment