Computer program for the determination of grain-size statistics and sediment transport direction